//
// Created by Administrator on 2024/7/7.
//

#include <iostream>
#include <vector>
using namespace std;

void printArr(vector<int> arr,int n)
{
    if (n>=arr.size())
        return;
    printArr(arr,n+1);
    cout<<arr[n]<<' ';
}
int main()
{
    vector<int> s{1,2,3,4,6,7,8};
    printArr(s,0);
    return 0;
}